package com.example.demo1.PK6;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Service;

@Configuration(proxyBeanMethods = false)    //获取配置信息
@ConfigurationProperties(prefix = "myapp")
public class NextAppBean {
    private String name;
    private String owner;
    private Integer port;
    private Security security;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getOwner() {
        return owner;
    }

    public void setOwner(String owner) {
        this.owner = owner;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }
    /**
     * 获取
     * @return security
     */
    public Security getSecurity() {
        return security;
    }

    /**
     * 设置
     * @param security
     */
    public void setSecurity(Security security) {
        this.security = security;
    }




    public String toString() {
        return "NextAppBean{name = " + name + ", owner = " + owner + ", port = " + port + ", service = " + security + "}";
    }


}
